﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SharpSphinx.Frontend
{
     public class Signal : IData 
    {

         private long time;


         private Dictionary<String, Object> props;


         /// <summary>
         /// Constructs a Signal with the given name.
         /// </summary>
         /// <param name="time"></param>
         protected Signal(long time)
         {
             this.time = time;
         }


         /// <summary>
         /// Returns the time this Signal was created.
         /// </summary>
         /// <returns></returns>
         public long getTime()
         {
             return time;
         }

         /// <summary>
         ///  Returns the properties associated to this signal.
         /// </summary>
         /// <returns></returns>
         public Dictionary<String, Object> getProps()
         {
             if (props == null)
             {
                 props = new Dictionary<string, object>(); 
             }
             return props;
         }


    }
}
